<!doctype html>
<html lang="zh-CN">
<head>
    <#include "common/head.html"/>
    <title>秒杀列表页</title>
</head>
<body>
    <!--页面显示部分-->
    <div class="container">
        <div class="pannel pannel-default">
            <div class="pannel-heading text-center">
                <h2>秒杀列表</h2>
            </div>
            <div class="pannel-body">
                <table class="table table-hover">
                    <thead>
                        <tr>
                            <th>名称</th>
                            <th>库存</th>
                            <th>开始时间</th>
                            <th>结束时间</th>
                            <th>创建时间</th>
                            <th>详情页</th>
                        </tr>
                    </thead>
                    <tbody>
                        <#list list as good>
                            <tr>
                                <td>${good.name}</td>
                                <td>${good.number}</td>
                                <td>${good.startTime}</td>
                                <td>${good.endTime}</td>
                                <td>${good.createTime}</td>
                                <td><a class="btn btn-info" href="/detail/${good.id}">详情</a></td>
                            </tr>
                        </#list>
                    </tbody>
                </table>
            </div>
        </div>
    </div>





<!-- jQuery (Bootstrap 的所有 JavaScript 插件都依赖 jQuery，所以必须放在前边) -->
<script src="https://cdn.jsdelivr.net/npm/jquery@1.12.4/dist/jquery.min.js" integrity="sha384-nvAa0+6Qg9clwYCGGPpDQLVpLNn0fRaROjHqs13t4Ggj3Ez50XnGQqc/r8MhnRDZ" crossorigin="anonymous"></script>
<!-- 加载 Bootstrap 的所有 JavaScript 插件。你也可以根据需要只加载单个插件。 -->
<script src="https://stackpath.bootstrapcdn.com/bootstrap/3.4.1/js/bootstrap.min.js" integrity="sha384-aJ21OjlMXNL5UyIl/XNwTMqvzeRMZH2w8c5cRVpzpU8Y5bApTppSuUkhZXN0VxHd" crossorigin="anonymous"></script>
</body>
</html>